package com.ydlclass.transport.message;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 服务提供方回复的响应
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class YrpcResponse {
    //请求的id
    private long requestId;

    //压缩的类型，序列化的方式
    private byte compressType;
    private byte serializeType;

    private long timeStamp;

    //响应码  1 成功， 2 异常
    private byte code;

    //具体的消息体
    private Object body;


}
